import Vue from 'vue'
import App from './App'

import store from './store'
import http from "./utils/http" // 对请求api进行封装
import api from "./api"

import comTips from "./common/comTips.js"



import helper from "./common/helper.js"
import pageHead from './components/setpage/pageheader.vue'
import pageBottom from './components/setpage/pageBottom.vue'
Vue.component('page-head',pageHead)
Vue.component('page-bottom',pageBottom)
helper.getheight()

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.$http = http
Vue.prototype.$api = api
Vue.prototype.$tips = comTips

Vue.prototype.$now = function(){
	console.log('现在时间', new Date())
}
Vue.prototype.$log = function leStatic (actiontype) {
  console.log(actiontype)
}
App.mpType = 'app'

if(process.env.NODE_ENV === 'development'){
    console.log('开发环境')
}else{
		console.log = function () {
		  return false;
		}
		console.log('生产环境')
}

const app = new Vue({
	store,
  ...App
})
app.$mount()
